package com.songmy.spider.run.callback.impl;

import org.apache.log4j.Logger;

import com.alibaba.fastjson.JSONObject;
import com.songmy.spider.run.callback.CallBackFace;
import com.songmy.spider.run.vo.CallBack;

public class NormalBack implements CallBackFace {
	
	Logger log = Logger.getLogger(NormalBack.class);
	private JSONObject o;
	public NormalBack() {
		log.info("not set CallBack;use NORMOL CallBack");
	}

	public void setValue(JSONObject o, CallBack callBack) {
		this. o = o ;
	}

	public boolean call() {
		log.info(o);
		return true;
	}
	
	public boolean stop() {
		log.debug("停止");
		return false;
	}

}
